﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompanyAdd.aspx.cs" Inherits="Manage_CompanyAdd"
    Title="添加企业" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加企业</title>
    <link href="../styles/global.css" rel="stylesheet" type="text/css" />

    <script src="../Common/yz.js" type="text/javascript"></script>

    <style type="text/css">
        body
        {
            margin: 0px;
            padding: 0px;
        }
        #container
        {
            width: 900px;
            margin: 0 auto;
            padding: 0px;
        }
        #title
        {
            float: left;
            width: 900px;
            margin: 10px auto 0px;
            padding: 0px;
            height: 80px;
        }
        #img
        {
            float: left;
            margin: 0px 0px 0px 10px;
        }
        #logo
        {
            float: left;
            padding: 20px 0px 0px 20px;
            border-bottom: 3px solid #1183c2;
            width: 700px;
        }
        #infor
        {
            width: 900px;
            float: left;
            margin: 10px 0px 0px 30px;
            float: left;
            font-size: 14px;
            font-weight: bold;
            color: #FF0000;
        }
        #content
        {
            width: 900px;
            margin: 20px auto 0px;
            padding: 0px;
            font-family: "宋体";
            font-size: 12px;
        }
        #content table
        {
            width: 850px;
            margin: 0 auto;
            padding: 20px 0px 0px 20px;
            border: 1px solid #ababab;
        }
        #content td
        {
            height: 30px;
        }
    </style>
</head>
<body>
    <form id="Form1" runat="server">

    <script language="vbscript" type="text/vbscript">
        Sub AreaSelect(byval id)
            Dim strReturnValue
	        strReturnValue = showModalDialog("../System/AreaSelect.aspx?ROOT=" & id,null,"dialogWidth:320px;dialogHeight:480px;status:0;scroll:no;center:yes;help:no;")
	        If Len(strReturnValue) > 0 Then
	            document.all("AreaId").value = Split(strReturnValue,vbCrLf)(0)
	            document.all("AreaName").value = Split(strReturnValue,vbCrLf)(1)
	        End If
        End Sub
    </script>

    <div id="container">
        <div id="content">
            <table id="tabData" style="width: 800px;" class="list" cellpadding="1" cellspacing="1">
                <tr>
                    <td style="vertical-align: middle;" class="td_left_40">
                        用户名：
                    </td>
                    <td class="td_right_60">
                        <asp:TextBox ID="AccountName" runat="server" CssClass="txtbox_200" NotNull="用户名"
                            onkeyup="value=ReplaceNumberOnlyChar(value);" InvertedComma="用户名"></asp:TextBox>
                        <span style="color: #ff6666">(*)</span>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: middle;" class="td_left_40">
                        密码：
                    </td>
                    <td class="td_right_60">
                        <asp:TextBox ID="Pwd_Bid" runat="server" CssClass="txtbox_200" NotNull="密码" InvertedComma="密码"></asp:TextBox>
                        <span style="color: #ff6666">(*)</span>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: middle;" class="td_left_40">
                        企业名称：
                    </td>
                    <td class="td_right_60">
                        <asp:TextBox runat="server" ID="CompanyName" CssClass="txtbox_200" NotNull="企业名称"
                            InvertedComma="企业名称"></asp:TextBox>
                        <span style="color: #ff6666">(*)</span>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: middle;" class="td_left_40">
                        企业类别：
                    </td>
                    <td class="td_right_60">
                        <asp:RadioButtonList ID="Sort" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0" Selected="True">生产企业</asp:ListItem>
                            <asp:ListItem Value="1">经营企业</asp:ListItem>
                            <asp:ListItem Value="2">进口药品国内一级代理</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: middle;" class="td_left_40">
                        所属地区：
                    </td>
                    <td class="td_right_60">
                        <input name="AreaName" type="text" notnull="所属地区" readonly="readonly" />
                        <input name="AreaId" type="hidden" />
                        <a href="javascript:AreaSelect(0)">选择地区</a> <span style="color: #ff6666">(*)</span>
                    </td>
                </tr>
                <tr>
                    <td class="td_center" colspan="2">
                        <asp:Button ID="BtnSave" CssClass="button_80" runat="server" Text="保存" OnClick="BtnSave_Click"
                            OnClientClick="javascript:return YZ(form);" />
                        <input id="Button4" class="button_80" name="sdf" type="button" value="关闭" onclick="window.close()" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
